package com.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * 【财务管理】 资金管理
 */

@Entity
@Table(name = "capital_account")
@Getter @Setter
public class FinanceAccount extends BaseEntity {

    @Column(name = "company_name")
    private String companyName;

    // 资金流水日期
    @Column(name = "flow_date")
    @Temporal(TemporalType.DATE)
    private Date flowDate;

    // 余额
    @Column(name = "balance", precision = 15, scale = 2)
    private BigDecimal balance;

    @Transient
    private List<FinanceFlow> flows;
}
